{% extends 'admin/master.html' %}

{% block body %}
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<meta id="data" data-chart_data="{{chart_data}}">
<meta id="data" data-chart_data="{{data}}">
<div class='container'>
	<label>Дата от:</label>
	<input type="date" name ="date" id='datefrom'/>
	<label>Дата до:</label>
	<input type="date" name ="date" id='dateto'/>
	<button type="button" class="btn btn-primary" id="changeDateButton">Применить</button>
</div>

<canvas id="lineChart"></canvas>
<script src="{{ url_for('static', filename='dist/js/stats_chart.min.js') }}"></script>


{% endblock %}
